package cqrtplm.service;

import cqrtplm.dto.RTCertFiledFormDTO;
import cqrtplm.entity.RtCertFiledPartManufacturDO;

import java.util.List;

/**
 * 零件供应商服务接口
 */
public interface RtCertFiledPartManufacturService {

    /**
     * 查询零件供应商列表
     */
    List<RtCertFiledPartManufacturDO> selectRtCertFiledPartManufacturList(RtCertFiledPartManufacturDO rtCertFiledPartManufactur);

    /**
     * 查询零件供应商
     */
    RtCertFiledPartManufacturDO selectRtCertFiledPartManufacturById(String id);

    /**
     * 根据零件ID查询零件供应商
     */
    RtCertFiledPartManufacturDO selectRtCertFiledPartManufacturByPartId(String partId);

    /**
     * 新增零件供应商
     */
    int insertRtCertFiledPartManufactur(RtCertFiledPartManufacturDO rtCertFiledPartManufactur);

    /**
     * 修改零件供应商
     */
    int updateRtCertFiledPartManufactur(RtCertFiledPartManufacturDO rtCertFiledPartManufactur);


    void updateEntityList(RTCertFiledFormDTO formDTO, String partID, List<RtCertFiledPartManufacturDO> list);

    /**
     * 删除零件供应商
     */
    int deleteRtCertFiledPartManufacturById(String id);

    int deleteRtCertFiledPartManufacturByFiledId(String id);

    /**
     * 批量删除零件供应商
     */
    int deleteRtCertFiledPartManufacturByIds(List<String> ids);

    List<RtCertFiledPartManufacturDO> selectRtCertFiledPartManufacturByFiledId(String id);

}
